<template>
  <div class="header">
    <div class="tip">
      <div class="tip-content">
        <i class="el-icon-info-circle"></i>
        <div class="tip-text">
          <h3>入驻指引</h3>
          <p>感谢您申请入驻河南省氟基新材料供应链平台，为了提升您入驻的成功率，请正确填写入驻信息。</p>
        </div>
      </div>
    </div>
     <el-steps :active="activeStep" align-center finish-status="success">
      <el-step title="提交基本信息" description="填写基本认证信息">
        <template slot="icon">
          <i class="el-icon-edit"></i>
        </template>
      </el-step>
      <el-step title="资质审核" description="等待平台审核">
        <template slot="icon">
          <i class="el-icon-document-checked"></i>
        </template>
      </el-step>
      <el-step title="认证完成" description="完成商家认证">
        <template slot="icon">
          <i class="el-icon-circle-check"></i>
        </template>
      </el-step>
    </el-steps>
  </div>
</template>

<script>
export default {
  name: 'Header',
  props: {
    activeStep: {
      type: Number,
      default: 0
    }
  }
};
</script>

<style scoped>
.header {
  padding: 20px 0 40px;
}

.tip {
  margin-bottom: 40px;
  background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%);
  border-radius: 8px;
  padding: 20px;
}

.tip-content {
  display: flex;
  align-items: flex-start;
  max-width: 800px;
  margin: 0 auto;
}

.tip-content i {
  font-size: 24px;
  color: #1890ff;
  margin-right: 16px;
  margin-top: 4px;
}

.tip-text {
  flex: 1;
}

.tip-text h3 {
  color: #1890ff;
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
}

.tip-text p {
  margin: 8px 0;
  color: #666;
  line-height: 1.6;
  font-size: 14px;
}

:deep(.el-steps) {
  max-width: 800px;
  margin: 0 auto;
}

:deep(.el-step__title) {
  font-size: 16px;
  font-weight: 500;
}

:deep(.el-step__description) {
  font-size: 13px;
  margin-top: 8px;
}

:deep(.el-step__icon) {
  width: 40px;
  height: 40px;
  font-size: 20px;
}

:deep(.el-step.is-horizontal .el-step__line) {
  height: 2px;
  top: 20px;
  background-color: #e8e8e8;
}

:deep(.el-step__head.is-process) {
  color: #1890ff;
  border-color: #1890ff;
}

:deep(.el-step__title.is-process) {
  color: #1890ff;
}
</style>
